.class Lcom/estrongs/android/pop/zeroconf/d$c;
.super Lcom/estrongs/android/pop/zeroconf/d;
.source "DNSQuestion.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/zeroconf/d;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "c"
.end annotation


# direct methods
.method constructor <init>(Ljava/lang/String;Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordType;Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;Z)V
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2, p3, p4}, Lcom/estrongs/android/pop/zeroconf/d;-><init>(Ljava/lang/String;Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordType;Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;Z)V

    return-void
.end method


# virtual methods
.method public a(Lcom/estrongs/android/pop/zeroconf/h;Ljava/util/Set;)V
    .locals 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/estrongs/android/pop/zeroconf/h;",
            "Ljava/util/Set<",
            "Lcom/estrongs/android/pop/zeroconf/e;",
            ">;)V"
        }
    .end annotation

    .line 1
    sget-object v0, Lcom/estrongs/android/pop/zeroconf/d$a;->a:[I

    invoke-virtual {p0}, Lcom/estrongs/android/pop/zeroconf/DNSEntry;->d()Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordType;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I

    move-result v1

    aget v0, v0, v1

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-eq v0, v1, :cond_0

    const/4 v1, 0x2

    if-eq v0, v1, :cond_1

    const/4 v1, 0x3

    if-eq v0, v1, :cond_1

    goto :goto_0

    .line 2
    :cond_0
    iget-object v0, p1, Lcom/estrongs/android/pop/zeroconf/h;->m:Ljava/net/InetAddress;

    if-eqz v0, :cond_1

    instance-of v0, v0, Ljava/net/Inet4Address;

    if-eqz v0, :cond_1

    .line 3
    new-instance v0, Lcom/estrongs/android/pop/zeroconf/e$b;

    iget-object v4, p1, Lcom/estrongs/android/pop/zeroconf/h;->k:Ljava/lang/String;

    sget-object v5, Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;->CLASS_IN:Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;

    const/4 v6, 0x1

    const/16 v7, 0xe10

    iget-object v8, p1, Lcom/estrongs/android/pop/zeroconf/h;->m:Ljava/net/InetAddress;

    move-object v3, v0

    invoke-direct/range {v3 .. v8}, Lcom/estrongs/android/pop/zeroconf/e$b;-><init>(Ljava/lang/String;Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;ZILjava/net/InetAddress;)V

    move-object v2, v0

    .line 4
    :cond_1
    iget-object v0, p1, Lcom/estrongs/android/pop/zeroconf/h;->m:Ljava/net/InetAddress;

    if-eqz v0, :cond_2

    instance-of v0, v0, Ljava/net/Inet6Address;

    if-eqz v0, :cond_2

    .line 5
    new-instance v2, Lcom/estrongs/android/pop/zeroconf/e$c;

    iget-object v4, p1, Lcom/estrongs/android/pop/zeroconf/h;->k:Ljava/lang/String;

    sget-object v5, Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;->CLASS_IN:Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;

    const/4 v6, 0x1

    const/16 v7, 0xe10

    iget-object v8, p1, Lcom/estrongs/android/pop/zeroconf/h;->m:Ljava/net/InetAddress;

    move-object v3, v2

    invoke-direct/range {v3 .. v8}, Lcom/estrongs/android/pop/zeroconf/e$c;-><init>(Ljava/lang/String;Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;ZILjava/net/InetAddress;)V

    :cond_2
    :goto_0
    if-eqz v2, :cond_3

    .line 6
    invoke-interface {p2, v2}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    :cond_3
    return-void
.end method
